package com.itboye.ihomebank.bean;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by Administrator on 2017/4/13.
 */

public class CurrentDaiKuanBean implements Serializable {
    /**
     "total_money": 25000000, //贷款额,分
     "id": 1,
     "expected_annualize": 1120, //万倍年化率
     "pay_start_time": "2017-05-15", //首期还款时间
     "next_pay_time": "2017-05-15", //下期还款时间
     "pay_end_time": "2017-05-15", //末期还款时间
     "loan_time": 1492228800, //贷款时间
     "dt_repayment_type": 6389, //还款方式,dtree
     "ranks": 1, //总期数
     "principal": 25000000, //还款本金
     "accrual": 233333, //还款利息
     "can_pay_start": 1492185600, //合法还款开始时间
     "can_pay_end": 1494777600, //合法还款结束时间
     "rank": 1 //当前还款期数
     */

    /**
     * "id": 1,
     * "total_money": 25000000, //贷款额
     * "loan_time": 1492228800, //贷款时间
     * "b_status": 1 //贷款
     */
    /**
     *  ["principal"] => int(25000000)
     ["accrual"] => int(233333)
     ["has_pay"] => int(0)
     ["pay_time"] => int(0)
     ["rank"] => int(1)
     ["pay_money"] => int(0)
     */
    private int count;
    private ArrayList<HuanKUanDetailBean> list;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public ArrayList<HuanKUanDetailBean> getList() {
        return list;
    }

    public void setList(ArrayList<HuanKUanDetailBean> list) {
        this.list = list;
    }

    public static class HuanKUanDetailBean implements Serializable{
        private double total_money;
        private int id;
        private String expected_annualize;
        private String pay_start_time;
        private String next_pay_time;
        private String pay_end_time;
        private String loan_time;
        private String next_pay;
        private String b_status;
        private String dt_repayment_type;
        private String dt_repayment_type_name;
        private String ranks;
        private double principal;
        private double accrual;
        private String can_pay_start;
        private String can_pay_end;
        private String rank;
        private String has_pay;
        private String pay_time;
        private int item;

        private String total; //当期欠费总额
        private String overdue_day; //当期逾期天数,0+
        private String  overdue_money;//当期滞纳金,分,0+

        public String getOverdue_day() {
            return overdue_day;
        }

        public void setOverdue_day(String overdue_day) {
            this.overdue_day = overdue_day;
        }

        public String getOverdue_money() {
            return overdue_money;
        }

        public void setOverdue_money(String overdue_money) {
            this.overdue_money = overdue_money;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public double getPrincipal() {
            return principal;
        }

        public void setPrincipal(double principal) {
            this.principal = principal;
        }

        public int getItem() {
            return item;
        }

        public void setItem(int item) {
            this.item = item;
        }

        /**
         * ["plan"] => array(1) {
         [0] => array(9) {
         ["principal"] => int(10000)
         ["accrual"] => int(100)
         ["has_pay"] => int(1)
         ["pay_time"] => int(0)
         ["rank"] => int(1)
         ["pay_money"] => int(0)
         ["can_pay_start"] => int(1492185600)
         ["can_pay_end"] => int(1494777600)
         ["item"] => int(1)
         }
         }
         * @return
         */
        public ArrayList<Plan> plan;

        public ArrayList<Plan> getPlan() {
            return plan;
        }

        public void setPlan(ArrayList<Plan> plan) {
            this.plan = plan;
        }

        public static class Plan implements Serializable{
            private double principal,accrual,pay_money;
            private int has_pay,rank,item;
            private long pay_time,can_pay_start,can_pay_end;

            String overdue_day,overdue_money,total;

            public String getOverdue_day() {
                return overdue_day;
            }

            public void setOverdue_day(String overdue_day) {
                this.overdue_day = overdue_day;
            }

            public String getOverdue_money() {
                return overdue_money;
            }

            public void setOverdue_money(String overdue_money) {
                this.overdue_money = overdue_money;
            }

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }

            public double getPrincipal() {
                return principal;
            }

            public void setPrincipal(double principal) {
                this.principal = principal;
            }

            public double getAccrual() {
                return accrual;
            }

            public void setAccrual(double accrual) {
                this.accrual = accrual;
            }

            public double getPay_money() {
                return pay_money;
            }

            public void setPay_money(double pay_money) {
                this.pay_money = pay_money;
            }


            public void setPrincipal(int principal) {
                this.principal = principal;
            }


            public void setAccrual(int accrual) {
                this.accrual = accrual;
            }

            public int getHas_pay() {
                return has_pay;
            }

            public void setHas_pay(int has_pay) {
                this.has_pay = has_pay;
            }

            public int getRank() {
                return rank;
            }

            public void setRank(int rank) {
                this.rank = rank;
            }


            public void setPay_money(int pay_money) {
                this.pay_money = pay_money;
            }

            public int getItem() {
                return item;
            }

            public void setItem(int item) {
                this.item = item;
            }

            public long getPay_time() {
                return pay_time;
            }

            public void setPay_time(long pay_time) {
                this.pay_time = pay_time;
            }

            public long getCan_pay_start() {
                return can_pay_start;
            }

            public void setCan_pay_start(long can_pay_start) {
                this.can_pay_start = can_pay_start;
            }

            public long getCan_pay_end() {
                return can_pay_end;
            }

            public void setCan_pay_end(long can_pay_end) {
                this.can_pay_end = can_pay_end;
            }
        }
        public String getDt_repayment_type_name() {
            return dt_repayment_type_name;
        }

        public void setDt_repayment_type_name(String dt_repayment_type_name) {
            this.dt_repayment_type_name = dt_repayment_type_name;
        }

        public String getHas_pay() {
            return has_pay;
        }

        public void setHas_pay(String has_pay) {
            this.has_pay = has_pay;
        }

        public String getPay_time() {
            return pay_time;
        }

        public void setPay_time(String pay_time) {
            this.pay_time = pay_time;
        }

        public String getDt_repayment_type() {
            return dt_repayment_type;
        }

        public void setDt_repayment_type(String dt_repayment_type) {
            this.dt_repayment_type = dt_repayment_type;
        }

        public String getRanks() {
            return ranks;
        }

        public void setRanks(String ranks) {
            this.ranks = ranks;
        }


        public double getAccrual() {
            return accrual;
        }

        public void setAccrual(double accrual) {
            this.accrual = accrual;
        }

        public String getCan_pay_start() {
            return can_pay_start;
        }

        public void setCan_pay_start(String can_pay_start) {
            this.can_pay_start = can_pay_start;
        }

        public String getCan_pay_end() {
            return can_pay_end;
        }

        public void setCan_pay_end(String can_pay_end) {
            this.can_pay_end = can_pay_end;
        }

        public String getRank() {
            return rank;
        }

        public void setRank(String rank) {
            this.rank = rank;
        }

        public String getB_status() {
            return b_status;
        }

        public void setB_status(String b_status) {
            this.b_status = b_status;
        }

        public double getTotal_money() {
            return total_money;
        }

        public void setTotal_money(double total_money) {
            this.total_money = total_money;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getExpected_annualize() {
            return expected_annualize;
        }

        public void setExpected_annualize(String expected_annualize) {
            this.expected_annualize = expected_annualize;
        }

        public String getPay_start_time() {
            return pay_start_time;
        }

        public void setPay_start_time(String pay_start_time) {
            this.pay_start_time = pay_start_time;
        }

        public String getNext_pay_time() {
            return next_pay_time;
        }

        public void setNext_pay_time(String next_pay_time) {
            this.next_pay_time = next_pay_time;
        }

        public String getPay_end_time() {
            return pay_end_time;
        }

        public void setPay_end_time(String pay_end_time) {
            this.pay_end_time = pay_end_time;
        }

        public String getLoan_time() {
            return loan_time;
        }

        public void setLoan_time(String loan_time) {
            this.loan_time = loan_time;
        }


        public String getNext_pay() {
            return next_pay;
        }

        public void setNext_pay(String next_pay) {
            this.next_pay = next_pay;
        }
    }
}
